using SqlSugar;

namespace FastCode.Models
{
    /// <summary>
    /// 日志表
    /// </summary>
    public class Log : BaseModel
    {
        [UIType(EUIType.Text, "日志类型")]
        public string? LogType { get; set; }

        [UIType(EUIType.Text, "操作用户")]
        public string? UserName { get; set; }

        [UIType(EUIType.Text, "操作内容")]
        // [SugarColumn(Length = 2000)] // 或更大
        [SugarColumn(ColumnDataType = "text")]
        public string? Content { get; set; }

        [UIType(EUIType.Text, "IP地址")]
        public string? IP { get; set; }

        [UIType(EUIType.Date, "操作时间")]
        public DateTime OperateTime { get; set; }
    }
} 